home *** CD-ROM | disk | FTP | other *** search
- on mouseDown me
- baRegister("digitalvision", 3766816)
- if the platform contains "win" then
- Ok = baOpenFile(getRootPath() & "license.pdf", "normal")
- if Ok < 32 then
- alert("You need Acrobat installed on your system to view this file.")
- acrobatPath = getRootPath() & "Utilities\Adobe Acrobat\Adobe Acrobat Installer pc\ar405eng.exe"
- retVal = baRunProgram(acrobatPath, "maximised", 0)
- if retVal < 32 then
- alert("Unable to install Acrobat")
- end if
- end if
- else
- Ok = baOpenFile(getRootPath() & "license.pdf", EMPTY)
- if Ok < 32 then
- alert("You need Acrobat installed on your system to view this file.")
- acrobatPath = getRootPath() & "Utilities:Adobe Acrobat:Adobe Acrobat Installer mac:Reader Installer"
- retVal = baRunProgram(acrobatPath, "maximised", 0)
- if retVal < 32 then
- alert("Unable to install Acrobat")
- end if
- end if
- end if
- end
-